﻿using Microsoft.AspNetCore.Mvc.Filters;

namespace MVC.Core
{
    public class TestActionFilter : IActionFilter
    {
        public void OnActionExecuted(ActionExecutedContext context)
        {
            Console.WriteLine("action执行之后执行这里");
        }

        public void OnActionExecuting(ActionExecutingContext context)
        {
            Console.WriteLine("action执行之前执行这里");
        }
    }
}
